import request from '@/utils/request'
//获取页码
export function getPage(data,page) {
    return request({
        url: '/purchase_gift_order_query/purchase_gift_order_query_page/'+ (page ? page : 1),
        method: 'post',
        data: data 
    })
}
//获取单个订单的商品列表
export function getList(data) {
    return request({
        url: '/purchase_gift_order_query/purchase_gift_order_query_list',
        method: 'post',
        data: data
    })
}

// 修改订单
export function updateOrder(data) {
    return request({
        url: '/purchase_gift_order_query/purchase_gift_order_query_update',
        method: 'post',
        data: data
    })
}
// 重新提交
export function setOrder(data) {
    return request({
        url: '/purchase_gift_order_query/purchase_gift_order_query_again',
        method: 'post',
        data: data
    })
}
// 关闭订单
export function closeOrder(data) {
    return request({
        url: '/purchase_gift_order_query/purchase_gift_order_query_close',
        method: 'post',
        data: data
    })
}
//获取订单商品信息
export function getInfo(data) {
    return request({
        url: '/purchase_gift_order_query/purchase_gift_order_query_info',
        method: 'post',
        data: data
    })
}

//搜索
export function  getGoodsList(data) {
    return request({
        url: '/Purchase_gift/gift_list/1',
        method: 'post',
        data: data
    })
}

//礼品信息
export function  getDetail(data) {
    return request({
        url: '/purchase_gift_order_query/purchase_gift_order_query_gift_info',
        method: 'post',
        data: data
    })
}

